package net;

import java.rmi.RemoteException;

import logic.DocumentDescription;
import net.rmi.List;

public class SocketList implements List {
	private final RemoteMethod rm;

	public SocketList(RemoteMethod rm) {
		this.rm = rm;
	}

	@SuppressWarnings("unchecked")
	public java.util.List<DocumentDescription> list(String type, String user) throws RemoteException {
		return (java.util.List<DocumentDescription>) rm.operation("list", type, user);
	}

}
